<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout/layout">
<head>
    <meta charset="UTF-8">
    <title>list</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
<div layout:fragment="content">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <table class="table table-striped table-hover">
                <tr>
                    <td>#</td>
                    <td>姓名</td>
                    <td>性别</td>
                    <td>生日</td>
                    <td>手机</td>
                    <td>邮箱</td>
                    <td>编辑</td>

                </tr>
                <tr th:each="student:${list}">
                    <td th:text="${student.id}">#</td>
                    <td th:text="${student.name}">姓名</td>
                    <td th:text="${student.sex}">性别</td>
                    <td th:text="${student.birthday}">生日</td>
                    <td th:text="${student.mobile}">手机</td>
                    <td th:text="${student.email}">邮箱</td>
                    <td><a href="#" class="btn btn-primary btn-xs">编辑</a></td>
                </tr>

            </table>
        </div>
    </div>
    <!-- <ul th:each="student:${list}">
         <li>
             <span th:text="${student.id}"></span>-
             <span th:text="${student.name}"></span>-
             <span th:text="${student.sex}"></span>-
             <span th:text="${student.birthday}"></span>-
             <span th:text="${student.mobile}"></span>-
             <span th:text="${student.email}"></span>
         </li>

     </ul>-->
</div>
</body>
</html>